package com.ck.javacode.Chapter7;

/**
 * @author: caoke
 * @date: 2021/10/12 4:46 下午
 * @description:
 */
public class D6_Recursion01 {
    public static void main(String[] args) {
        R r = new R();
        r.test(4);
    }

}
class R{
    public void test(int n){
        if (n > 2){
            test(n-1);
        }
        System.out.println("n="+n);
    }
}